package learn_effective_java.item_23;

public class Circle extends Figure2 {
	
	private final double radius;
	
	public Circle(double radius) {
		this.radius = radius;
	}
	
	@Override
	public double area() {
		return Math.PI * (radius * radius);
	}

}
